package algorithm;

import java.io.File;

import static com.sun.deploy.cache.Cache.exists;

/**
 * @author LiShaowen
 * @date 2020/9/28 11:35
 */
public class People {
    static  int  x=10;
     String name;
    int a =1;

    public People() {

        System.out.print(1);

    }

    public People(String name) {

        System.out.print(2);

        this.name = name;

    }
    protected void test(){}

}

class Child extends People {

    People father;

    public Child(String name) {

        System.out.print(3);

        this.name = name;

        father = new People(name + ":F");

    }

    public Child() {

        System.out.print(4);

    }

    @Override
    protected void test() {
        super.test();
    }

    public static void main(String[] args) {
        new Child("mike");
    }
}
